-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change deprecated setMockMethodCallHandler to TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler #1749
Change deprecated setMockMethodCallHandler to TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler #1749
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, assuming tests pass
I'm going to go modify the code a bit. |
Is this change only for |
I'm a newbie so I'm not sure what your question means 😢I'm working on a branch forked from the master branch. I'm trying to fix a few things that didn't pass tests. |
I guess it means that the test is failing only in flutter beta and master. Either way I have made a few changes and need to see how this test goes. |
I think you'll have a saner time if you try developing a fix on |
@domesticmouse I will close this and the #1740 PR once and start over with a new branch from the beta branch. Is that OK? |
The beta branch is going to be landed when Flutter 3.10 goes stable. It's WIP until then. I'll create a new PR with the changes required to fix federated_plugin. |
Replaces #1749 FYI @negotoyolo ## Pre-launch Checklist - [x] I read the [Flutter Style Guide] _recently_, and have followed its advice. - [x] I signed the [CLA]. - [x] I read the [Contributors Guide]. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-devrel channel on [Discord]. <!-- Links --> [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/wiki/Chat [Contributors Guide]: https://github.com/flutter/samples/blob/main/CONTRIBUTING.md
Changed deprecated setMockMethodCallHandler in experimental\federated_plugin\federated_plugin
to fix error : 'setMockMethodCallHandler' is deprecated and shouldn't be used. Use tester.binding.defaultBinaryMessenger.setMockMethodCallHandler or TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger.setMockMethodCallHandler instead. Pass the channel as the first argument. This feature was deprecated after v3.9.0-19.0.pre. Try replacing the use of the deprecated member with the replacement. - deprecated_member_use in PR #1740
Pre-launch Checklist
///
).